import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store';
import '@/utils/injectionAntCom';
import '@/permission';
import './styles/index.less';
import RenderProvide from "@/utils/RenderProvide.js";
import {TabsConsumer} from "@/components";
import VueTour from 'vue-tour';
import 'vue-tour/dist/vue-tour.css';
import Print from 'vue-print-nb';
import GlobalDown from "@/components/globalDown/GlobalDown";


Vue.config.productionTip = false;
Vue.component('render-provide', RenderProvide);
Vue.component('tabs-consumer', TabsConsumer);
Vue.component('global-down', GlobalDown);
Vue.use(VueTour);
Vue.use(Print);
new Vue({
    router,
    store,
    render: h => h(App),
    mounted() {
        const mountRoot = document.querySelector('#app');
        const mountRootChildNodes = mountRoot.childNodes;
        if (!mountRootChildNodes || !mountRootChildNodes.length) {
            localStorage.clear();
            window.location.reload();
        }
    }
}).$mount('#app')
